package ru.paswd.marketprice.ui.widgets.chart

import java.util.*

class PriceHistoryItem {
    val x: Double
    val y: Double

    constructor(x: Double, y: Double) {
        this.x = x
        this.y = y
    }
    constructor(x: Date, y: Double) {
        this.x = x.time.toDouble()
        this.y = y
    }
}